<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI远端护理康养指导系统 - 患者端</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>患者端 - AI远端护理康养指导系统</h1>
            <button id="logoutBtn">退出登录</button>
        </header>
        
        <div class="menu">
            <button id="aiChatBtn" class="active">AI问答</button>
            <button id="healthDataBtn">生命体征上传</button>
            <button id="callDoctorBtn">呼叫真人</button>
        </div>
        
        <div class="content">
            <div id="aiChatSection" class="section">
                <div class="chat-container">
                    <div id="chatMessages" class="chat-messages"></div>
                    <div class="chat-input">
                        <input type="text" id="chatInput" placeholder="请输入您的问题...">
                        <button id="sendChatBtn">发送</button>
                    </div>
                </div>
            </div>
            
            <div id="healthDataSection" class="section hidden">
                <form id="healthDataForm">
                    <div class="form-row">
                        <div class="form-group">
                            <label for="temperature">体温 (°C)</label>
                            <input type="number" id="temperature" step="0.1" min="35" max="42">
                        </div>
                        <div class="form-group">
                            <label for="heartRate">心率 (次/分)</label>
                            <input type="number" id="heartRate" min="40" max="200">
                        </div>
                    </div>
                    <div class="form-row">
                        <div class="form-group">
                            <label for="bloodPressure">血压 (mmHg)</label>
                            <input type="text" id="bloodPressure" placeholder="如: 120/80">
                        </div>
                        <div class="form-group">
                            <label for="bloodSugar">血糖 (mmol/L)</label>
                            <input type="number" id="bloodSugar" step="0.1" min="2" max="30">
                        </div>
                    </div>
                    <button type="submit">上传数据</button>
                </form>
            </div>
            
            <div id="callDoctorSection" class="section hidden">
                <div class="call-container">
                    <p>您的请求已提交，请等待医护人员接入...</p>
                    <div class="waiting-indicator"></div>
                    <button id="cancelCallBtn">取消呼叫</button>
                </div>
            </div>
        </div>
    </div>
    <script src="patient.js"></script>
</body>
</html>
